package PatternPrinting;

import java.util.Scanner;

/**
 * Created by revathyr on 7/8/14.
 */
public class PrintHorizontalLine {



    public static void main(String[] args){

        PrintHorizontalLine print=new PrintHorizontalLine();
        Scanner in=new Scanner(System.in);
        System.out.println("Enter the number of stars to be printed");
        int n=in.nextInt();
        print.printHorizontalLine(n);


    }

    private void printHorizontalLine(int n) {

        for(int i=1;i<=n;i++)
        System.out.print("*"+" ");

    }

}
